package com.wicket.okrbff.biz.service.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffBaseChangeColumnDto
 * @使用场景
 */
@Data
public class BffBaseChangeColumnDto implements Serializable {

    /**
     * 对象属性编码:
     */
    @ApiModelProperty("对象属性编码")
    private String propertyCode;

    /**
     * 对象属性名称:
     */
    @ApiModelProperty("对象属性名称")
    private String objectPropertyName;


    /**
     * 变更字段中文内容:
     */
    @ApiModelProperty("变更字段中文内容")
    private String columnContent;

    /**
     * 原始字段中文内容:
     */
    @ApiModelProperty("原始字段中文内容")
    private String oriColumnContent;
    /**
     * 变更字段内容:
     */
    @ApiModelProperty("变更字段内容")
    private String metaDataColumnContent;
/**
     * 变更字段记录ID
     */
    @ApiModelProperty("变更字段记录ID")
    private String	 changeColumnId;

    /**
     * 主体变更日志类型
     */
    @ApiModelProperty("主体变更日志类型")
    private String	 subjectChangeType;

    /**
     * 111111批次下更新状态 NEW:本次新增 UNCHANGED:正常未变 REVISION:本次修订 ARCHIVE:本次存档
     */
    @ApiModelProperty("111111批次下更新状态")
    private String	 updateStatus;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String	 operationInductionId;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String	 userId;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String	 idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String	 nickName;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String	 userFace;
/**
     * 主体批次下更新状态 NEW:本次新增 UNCHANGED:正常未变 REVISION:本次修订 ARCHIVE:本次存档
     */
    @ApiModelProperty("主体批次下更新状态")
    private String	 subjectUpdateStatus;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffBaseChangeColumnDto that = (BffBaseChangeColumnDto) o;
      return  propertyCode == that.propertyCode&&objectPropertyName == that.objectPropertyName&&columnContent == that.columnContent&&oriColumnContent == that.oriColumnContent&&metaDataColumnContent == that.metaDataColumnContent&&changeColumnId == that.changeColumnId&&subjectChangeType == that.subjectChangeType&&updateStatus == that.updateStatus&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&userId == that.userId&&idCardName == that.idCardName&&nickName == that.nickName&&userFace == that.userFace&&subjectUpdateStatus == that.subjectUpdateStatus;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), propertyCode,objectPropertyName,columnContent,oriColumnContent,metaDataColumnContent,changeColumnId,subjectChangeType,updateStatus,operationInductionId,operateTime,userId,idCardName,nickName,userFace,subjectUpdateStatus);
    }
}
